﻿using PowerHub.MES.Entities.ProductPlanning;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PowerHub.MES.DTO.ProductPlanning.DTO
{
    public class ProductPlanning_ProductClassifyDTOTree
    {

        /// <summary>
        /// id
        /// </summary>
        public string? value { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string? Label { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int? ProcessSort { get; set; }

        /// <summary>
        /// 子列表
        /// </summary>
        public List<ProductPlanning_ProductClassifyDTOTree>? Children { get; set; }

        public ProductPlanning_ProductClassifyDTOTree(ProductPlanning_ProductClassify productPlanning_ProductClassify)
        {
            value = productPlanning_ProductClassify.Id;
            this.Label = productPlanning_ProductClassify.ProductClassifyName;
            this.ProcessSort = productPlanning_ProductClassify.ProcessSort;
        }
    }
}
